import { HashRouter as Router, Route, Link, Switch, Redirect } from 'react-router-dom'
import createHistory from 'history/createHashHistory'
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import MenuJs from './Menu/MenuJs';
const history = createHistory()


class App extends Component {
  render() {
    console.log(222, this.props.children, this.props.history)
    return (
      <div className="App" >
        <Router basename="/" >
            <div>
              <Route exact path="/" render={() => <Redirect to={`/MenuJs`} />}></Route>
              <Route path="/MenuJs" render={() => <MenuJs />} />
            </div>

        </Router>



      </div>
    );
  }
}

export default App;
